import network from './request'
import apiList from './apiList';


export const getVIPConfig = (data, params) => {
    return network.request({
        url: apiList.user.getVIPConfig,
        data,
        ...params
    });
}

export const getUserCardDetail = (data, params) => {
    return network.request({
        url: apiList.user.getUserCardDetail,
        data,
        ...params
    });
}

export const updateUserInfo = (data, params) => {
    return network.request({
        url: apiList.user.updateUserInfo,
        data,
        ...params
    });
}

export const getViewUserList = (data, params) => {
    return network.request({
        url: apiList.user.getViewUserList,
        data,
        ...params
    });
}

export const getUsersInviteList = (data, params) => {
    return network.request({
        url: apiList.user.getUsersInviteList,
        data,
        ...params
    });
}

export const getUserInviteTotal = (data, params) => {
    return network.request({
        url: apiList.user.getUserInviteTotal,
        data,
        ...params
    });
}



export const getViewerDynamicHis = (data, params) => {
    return network.request({
        url: apiList.user.getViewerDynamicHis,
        data,
        ...params
    });
}

export const getViewerDynamicTotal = (data, params) => {
    return network.request({
        url: apiList.user.getViewerDynamicTotal,
        data,
        ...params
    });
}


export const removeViewerDynamicHis = (data, params) => {
    return network.request({
        url: apiList.user.removeViewerDynamicHis,
        data,
        ...params
    });
}

export const getShareViewerTotal = (data, params) => {
    return network.request({
        url: apiList.user.getShareViewerTotal,
        data,
        ...params
    });
}

export const getViewUsersHisList = (data, params) => {
    return network.request({
        url: apiList.user.getViewUsersHisList,
        data,
        ...params
    });
}

export const getMaxViewUserHisList = (data, params) => {
    return network.request({
        url: apiList.user.getMaxViewUserHisList,
        data,
        ...params
    });
}

export const getUserViewHisList = (data, params) => {
    return network.request({
        url: apiList.user.getUserViewHisList,
        data,
        ...params
    });
}

export const getViewRefViewerList = (data, params) => {
    return network.request({
        url: apiList.user.getViewRefViewerList,
        data,
        ...params
    });
}

export const getViewerTotal = (data, params) => {
    return network.request({
        url: apiList.user.getViewerTotal,
        data,
        ...params
    });
}
export const getUserUnReadCnt = (data, params) => {
    return network.request({
        url: apiList.user.getUserUnReadCnt,
        data,
        ...params
    });
}

export const getUserBanks = (data, params) => {
    return network.request({
        url: apiList.user.getUserBanks,
        data,
        ...params
    });
}
export const editUserBankAccount = (data, params) => {
    return network.request({
        url: apiList.user.editUserBankAccount,
        data,
        ...params
    });
}
export const addCashTransfer = (data, params) => {
    return network.request({
        url: apiList.user.addCashTransfer,
        data,
        ...params
    });
}
export const getCashTransferList = (data, params) => {
    return network.request({
        url: apiList.user.getCashTransferList,
        data,
        ...params
    });
}


